﻿using CYZH.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CYZH.Service.Drought
{
    public class GrassService
    {
        /// <summary>
        /// 计算产草量
        /// </summary>
        /// <param name="ndviFile">ndvi文件</param>
        /// <param name="shpfile">范围</param>
        /// <param name="saveRaster">保存文件</param>
        /// <returns></returns>
        public int CaculateGrassNoArea(string ndviFile, string shpfile, string saveRaster)
        {

            string msg;
            int i = CYZHLibrary.HZ.Grass.CaculateGrassNoArea(ndviFile, shpfile, saveRaster, out msg);
            Logger.Singleton.Debug(msg);
            return i;

        }
    }
}
